<%--
	/*
	 * Copyright (c) 2007, Sun Microsystems, Inc. All rights reserved.
	 *
	 * Redistribution and use in source and binary forms, with or without
	 * modification, are permitted provided that the following conditions are met:
	 * 
	 * * Redistributions of source code must retain the above copyright notice,
	 *   this list of conditions and the following disclaimer.
	 * 
	 * * Redistributions in binary form must reproduce the above copyright notice,
	 *   this list of conditions and the following disclaimer in the documentation
	 *   and/or other materials provided with the distribution.
	 *
	 * * Neither the name of Sun Microsystems, Inc. nor the names of its contributors
	 *   may be used to endorse or promote products derived from this software without
	 *   specific prior written permission.
	 * 
	 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
	 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
	 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
	 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
	 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
	 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
	 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
	 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
	 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
	 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
	 * THE POSSIBILITY OF SUCH DAMAGE.
	 */
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Bulls And Cows</title>
        <style type="text/css">
            <!--
            body {
                background-color: #E5E5E5;
                background-image: url(http://www.nice-one.com/wallpaper.jpg);
                background-repeat: no-repeat;
                margin-left: 10%;
                margin-top: 10%;
                margin-right: 10%;
            }
            body,td,th {
                font-family: Verdana, Arial, Helvetica, sans-serif;
                color: #333333;
            }
            .style2 {
                color: #FFFFFF;
                font-size: 20px;
            }
            .style3 {
                color: #FFFFFF;
                font-size: 14px;
            }
            .style4 {
                font-size: 24px;
                color: #99CC00;
                font-weight: bold;
            }
            -->
        </style>
    </head>
    <body>
        <div>
            <div align="center" >
                <p align="center" class="style2 style4"> Bulls and Cows </p>
            </div>
        </div>
        <p>&nbsp;</p>
        <p>&nbsp;</p>
         <div style="background:silver; color:silver" >
            <div align="center" class="style3" >
                <p>&nbsp;</p>
                <h1>Please Enter Your Name</h1>
                <f:view>
                    <h:messages style="color: red"
                                showDetail="true"/>
                    <h:form id="login">
                        <h:panelGrid columns="2" border="0" style="color:white">
                            <p style="color:white">Username:</p>
                           <h:inputText id="username"
                                         value="#{usermanager.username}"/>
                            <p style="color:white">Password:</p>
                             <h:inputSecret id="password"
                                           value="#{usermanager.password}"/>
                        </h:panelGrid>
                        <h:commandButton id="submit"
                                         type="submit"
                                         value="Login"
                                         action="#{usermanager.validateUser}"/>
                        <br>
                        <h:commandLink id="create"
                                       value="Create New Account"
                                       action="create"/>
                    </h:form>

                </f:view>



                <p>&nbsp;</p>


            </div>
        </div>
        <p>&nbsp;</p>

        <a href="faces/webclient.xhtml">Currency converter</a>






    </body>
</html>
